package cn.yht.wang.mapper;

import cn.yht.wang.bean.SysRole;
import cn.yht.wang.bean.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Mapper
@Repository
public interface UserMapper {
    List<SysUser> queryUserList();

    SysUser queryUserById(String name,String password);

    SysUser queryUserByIdentity(Long id);

    int insertUser(SysUser user);

    int updateUser(SysUser user);

    int deleteUserById(Long id);

    List<SysRole> selectRolesByUserId(Long userId);

    List<SysRole> selectAllUserAndRoles();

    List<SysUser> deluxeSelectAllUserAndRoles();

    List<Map<String,Object>> selectMapList();

}